package edu.nanyang.service;

import edu.nanyang.dao.AcademyInfoDao;
import edu.nanyang.domain.AcademyInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AcademyInfoService {
    @Resource
    private AcademyInfoDao academyInfoDao;
    public int add(AcademyInfo academyInfo){
        return academyInfoDao.add(academyInfo);
    }
    public int delete(int id){
        return academyInfoDao.delete(id);
    }
    public int update(AcademyInfo academyInfo){
        return academyInfoDao.update(academyInfo);
    }
    public List<AcademyInfo> findAll(){
        return academyInfoDao.findAll();
    }
    public AcademyInfo getById(int id){
        return academyInfoDao.getById(id);
    }



}
